<?php /* Smarty version 2.6.18, created on 2009-10-22 06:33:51
         compiled from doaReportList.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'doaReportList.tpl', 18, false),array('modifier', 'number_format', 'doaReportList.tpl', 26, false),)), $this); ?>
<?php if ($this->_tpl_vars['group'] == 0 || $this->_tpl_vars['group'] == ""): ?>
	<div>
		<table border="0" width="100%">
		<tr><td colspan="9"><hr></td></tr>
		<tr>
			<td align="right">Date Received</td>
			<td>PO No</td>
			<td>MOID</td>
			<td>Common Name</td>
			<td>Supplier Name</td>
			<td>Country</td>
			<td>Tank</td>
			<td align="right">Received Qty</td>
			<td align="right">DOA Qty</td>
		</tr>
		<tr><td colspan="9"><hr></td></tr>
		<?php $_from = $this->_tpl_vars['doaList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['doa']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
			<td align="right"><?php echo $this->_tpl_vars['doa']['date_receipt']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['po_no']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['moid']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['specie']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['supplier_name']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['country']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['tank_name']; ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['received_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['doa_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
		</table>
	</div>
<?php elseif ($this->_tpl_vars['group'] == 1): ?>	
	<div>
		<table border="0" width="100%">
		<tr><td colspan="9"><hr></td></tr>
		<tr>
			<td align="right">First Received</td>
			<td align="right">Last Received</td>
			<td>Supplier Name</td>
			<td>Country</td>
			<td align="right">Issued POs</td>
			<td align="right">MOIDs</td>
			<td align="right">Tanks</td>
			<td align="right">Total Received Qty</td>
			<td align="right">Total DOA Qty</td>
		</tr>
		<tr><td colspan="9"><hr></td></tr>
		<?php $_from = $this->_tpl_vars['doaList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['doa']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
			<td align="right"><?php echo $this->_tpl_vars['doa']['first_receipt']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['last_receipt']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['supplier_name']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['country']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_po_no']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_moid']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_tank']; ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['sum_received_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['sum_doa_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
		</table>
	</div>
<?php elseif ($this->_tpl_vars['group'] == 2): ?>	
	<div>
		<table border="0" width="100%">
		<tr><td colspan="8"><hr></td></tr>
		<tr>
			<td align="right">First Received</td>
			<td align="right">Last Received</td>
			<td>MOID</td>
			<td align="right">Issued POs</td>
			<td align="right">Suppliers</td>
			<td align="right">Tanks</td>
			<td align="right">Total Received Qty</td>
			<td align="right">Total DOA Qty</td>
		</tr>
		<tr><td colspan="8"><hr></td></tr>
		<?php $_from = $this->_tpl_vars['doaList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['doa']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
			<td align="right"><?php echo $this->_tpl_vars['doa']['first_receipt']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['last_receipt']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['moid']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_po_no']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_supplier']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_tank']; ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['sum_received_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['sum_doa_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
		</table>
	</div>
<?php elseif ($this->_tpl_vars['group'] == 3): ?>	
	<div>
		<table border="0" width="100%">
		<tr><td colspan="8"><hr></td></tr>
		<tr>
			<td align="right">First Received</td>
			<td align="right">Last Received</td>
			<td>Tank</td>
			<td align="right">Issued POs</td>
			<td align="right">MOIDs</td>
			<td align="right">Suppliers</td>
			<td align="right">Total Recieved Qty</td>
			<td align="right">Total DOA Qty</td>
		</tr>
		<tr><td colspan="8"><hr></td></tr>
		<?php $_from = $this->_tpl_vars['doaList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['doa']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
			<td align="right"><?php echo $this->_tpl_vars['doa']['first_receipt']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['last_receipt']; ?>
</td>
			<td><?php echo $this->_tpl_vars['doa']['tank_name']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_po_no']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_moid']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['doa']['count_supplier']; ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['sum_received_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['doa']['sum_doa_quantity'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
		</table>
	</div>
<?php endif; ?>